<div >
	<ul>
		<li id="photo">
		</li>
	</ul>	
</div>
<script type="text/html" id="photo_js">
{{if data==null || data.length==0 }}
	<div style="color: gray;text-align: center;width:100%">暂无数据</div>
{{else}}
	{{each data as value index}}
		<img src="http://58.20.6.141:10987/gsdata{{value}}">
	{{/each}}
{{/if}}
</script>

<script type="text/javascript">
	$(function() {
		var a={"success":true,"errorCode":0,"message":"操作成功",
		"data":["/imgquery/01/20160121000250_49_14_1_X01_1_3173.jpeg",
			"/imgquery/02/9102NCAM01201509240000006982ZZ.jpg",
			"/imgquery/01/20160121000343_49_14_7_E01_1_1652.jpeg"]};
    	var html = template('photo_js', a);
		$("#photo").html(html);
	 });
</script>